ngtcp2: update to 1.15.0
authorAleksey Vasilenko <aleksey.vasilenko@gmail.com>
Sat, 23 Aug 2025 05:39:32 +0000 (08:39 +0300)
committerTianling Shen <cnsztl@gmail.com>
Sun, 24 Aug 2025 14:27:19 +0000 (22:27 +0800)
- Remove superficial libnghttp3 dependency
- Add libopenssl dependency
- Update package description
- Fix leaking lib and includes in libngtcp2_crypto_ossl.pc
- Use CP instead of INSTALL_DATA to copy symlinks properly

Signed-off-by: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>
libs/ngtcp2/Makefile

index 80927ab12d993861ac4dfddd04030ef327f39f15..cf3771c078099bad736aac4626f460223da8ac6a 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ngtcp2
-PKG_VERSION:=1.7.0
+PKG_VERSION:=1.14.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/ngtcp2/ngtcp2/releases/download/v$(PKG_VERSION)/
-PKG_HASH:=e07c79090f96f6738fabab2129657c53f0cc05164de3662592581ca5425617b1
+PKG_HASH:=d1fbf9eae92921bfd33154dab2574bc4b7d7936f486396d6c78bfff90ed5b35d
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=COPYING
@@ -22,12 +22,11 @@ define Package/libngtcp2
   CATEGORY:=Libraries
   TITLE:=Implementation of QUIC protocol
   URL:=https://nghttp2.org/ngtcp2
-  DEPENDS:=+libnghttp3
+  DEPENDS:=+libopenssl
 endef
 
 define Package/libngtcp2/description
-ngtcp2 project is an effort to implement QUIC protocol which is now being
-discussed in IETF QUICWG for its standardization.
+ngtcp2 project is an effort to implement IETF QUIC protocol
 endef
 
 CMAKE_OPTIONS += -DENABLE_LIB_ONLY=ON
@@ -36,11 +35,13 @@ define Build/InstallDev
        $(call Build/InstallDev/cmake,$(1))
        $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libngtcp2.pc
        $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libngtcp2.pc
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libngtcp2_crypto_ossl.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libngtcp2_crypto_ossl.pc
 endef
 
 define Package/libngtcp2/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libngtcp2*.so* $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libngtcp2*.so* $(1)/usr/lib
 endef
 
 $(eval $(call BuildPackage,libngtcp2))